{% extends "base.html" %}
{% block sideBarContent %}
<H2>Liste der Ligen</H2>


<div style="background:red; color:yellow;"><b>{{ error }}</b></div>
<div style="background:lightgreen">{{ msg }}</div>

<table class="t_main t_ligen">
  <tr><th>Name</th>   <th>Er&ouml;ffnet</th>    <th>geschlossen</th> <th>#teams</th> <th>edit</th></tr>

{% for entry in entries %}
  <tr>
        <td>{{ entry.name }}</td>
        <td>{{ entry.opened_date }}</td>
        <td>{{ entry.closed_date }}</td>
        {%if entry.size %}
        <td class="td_num">{{ entry.size }}</td>
        {%else%}
        <td class="td_num"><a href="liga_del?id={{ entry.key }}"><i>(del)</i></a> -</td>
        {%endif%}
        <td><a href="liga_edit?id={{ entry.key }}">edit</a></td>
  </tr>
{% endfor %}

</table>

<p><a href="liga_new">Neue Liga</a></p>

{% endblock %}
